home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 85 / CD Temático 40 Febrero 2004.iso / DOS / ntfs / dos / km.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-15  |  1.2 KB  |  53 lines

  1. #define HDPARM_BUF_SIZ 0x1A
  2. #define HD_RW_BUF_SIZ 0x10
  3.  
  4. #define NBR_SECT    8
  5. #define PARA_CMD        8
  6. #define buffer_size 0x100
  7.  
  8. typedef unsigned char uchar;
  9. typedef unsigned char byte;
  10. typedef unsigned short int word;
  11. typedef unsigned long int dword;
  12. #if defined __DJGPP__
  13. typedef unsigned short int uint;
  14. #endif
  15.  
  16. typedef uchar t_sector[0x200];
  17. typedef uchar t_entree[0x10];
  18. typedef word n_bufferw[buffer_size];
  19. typedef byte n_buffer[0x200];
  20. typedef n_buffer *t_buffer;
  21. typedef struct cellule_disk *t_disk;
  22. typedef struct cellule_disk *t_param_disk;
  23. typedef const t_param_disk t_param_disk_cst;
  24. typedef const uchar t_sector_cst[0x200];
  25. typedef const uchar t_entree_cst[0x10];
  26. typedef const struct cellule_disk *t_disk_cst;
  27.  
  28. struct cellule_disk
  29.  {
  30.   byte disk;
  31.   word cylinder;
  32.   byte head;
  33.   byte sector;
  34.  };
  35. typedef struct cellule_param t_param;
  36. struct cellule_param
  37. {
  38.   word size;
  39.   word info;
  40.   dword cyl;
  41.   byte head;
  42.   byte sect;
  43.   dword nbrsect1;
  44.   dword nbrsect2;
  45.   word  bps;
  46. };
  47. int hd_super(int, int, int, int, int, int, void*);
  48. int hd_identify(t_param_disk);
  49. int hd_parm(byte, void*);
  50.  
  51. void free_dos_buffer(void);
  52. int alloc_dos_buffer(void);
  53.